<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var findLengthOfLCIS = function (nums) {
        let count = 1
        let max = 1
        for (let i = 1; i < nums.length; i++) {
          if (nums[i] > nums[i - 1]) {
            count++
          } else {
            count = 1
          }
          max = Math.max(max, count)
        }
      }
    </script>
  </body>
</html>
